//
//  BPMManager.swift
//  helloworld
//
//  Created by Mike on 2016/10/30.
//  Copyright © 2016年 GindaChen. All rights reserved.
//

import Cocoa

class BPMManager: NSObject {
    
    
    // Beats_interval = bpm/60
    var bpm : Int{
        get{return self.bpm}
        set{refine_beats_interval()}
    }
    var upper_beat : Int {
        get{return self.upper_beat}
        set{refine_beats_interval()}
    }
    var lower_beat : Int {
        get{return self.lower_beat}
        set{refine_beats_interval()}
    }
    var beats_interval : Double = 2
    
    init(BPM : Int, ub : Int, lb : Int){
        
        
    }
    
    func refine_beats_interval(){
        beats_interval = Double(lower_beat) * 15.0 / Double(bpm)
    }
    
    
    
}
